import { getReq } from '@/utils/axios'

export function login (params: user.loginParams): http.CustomPromise<user.loginResponse> {
  return getReq({
    url: '/login',
    params
  })
}

export function getUserInfo ():http.CustomPromise<user.loginResponse> {
  return getReq({
    url: '/user/account'
  })
}
